<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%request.setAttribute("ctx",request.getContextPath()); %>
<html>
<head>
<link href="${ctx}/extend/css/style.css" rel="stylesheet"
	type="text/css" />
<script src="${ctx}/extend/js/jquery/jquery.js" type="text/javascript"></script>
<script src="${ctx}/extend/js/dutil/DUtil.js" type="text/javascript"></script>
<script src="${ctx}/extend/css/css.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/js/common.js" type="text/javascript"></script>
<title>View eBay Account</title>
<script type="text/javascript">
	function addMd(){
	    window.open('${ctx}/toAddMd', "md_add",  "width=1000,height=750,top=6,left=10,scrollbars=auto");
    }
   function editAct(){
		window.location.href="${ctx}/admin/toEditEbayAct?ebayActId=${ebayPO.id}";
    }
    function deleteEbayAct(){
   		if(window.confirm("you are sure to delete this ebay account?")){
   			window.location.href="${ctx}/admin/deleteEbayAct?ebayActId=${ebayPO.id}";
   		}
    }
   function deleteUser(){
		window.location.href="${ctx}/admin/deleteUser?userId=${userPO.userId}";
    }
</script>
</head>


<body class="maintable">
	<form name="merchandiseForm" method="POST" id="mdForm" action="saveMd"
		enctype="multipart/form-data">
		<div class="dclass_container">
			<div class="dclass_container_header">
				<div class="dclass_container_title">View eBay Account</div>
			</div>

			<div class="dclass_container_content">
				<table width="100%" border="0" cellpadding="0" cellspacing="1"
					bgcolor="#9FD6FF">

					<tr>
						<td width="20%" class="formtitle">eBay Account:<span
							class="fontred">*</span><br /></td>
						<td width="30%" class="formtd">${ebayPO.ebayAct}</td>
					</tr>
					<tr>
						<td width="20%" class="formtitle">Email Account:<span
							class="fontred">*</span></td>
						<td width="30%" class="formtd">${ebayPO.emailAct}</td>
					</tr>
					<tr>
						<td class="formtitle">Email Password:</td>
						<td class="formtd">${ebayPO.emailPsw}</td>
					</tr>
					<tr>
						<td class="formtitle">Token:</td>
						<td class="formtd">${ebayPO.token}</td>
					</tr>

				</table>
				<br style="line-height: 5px;" /> <br style="line-height: 5px;" />
				<div style="padding: 0.3em; text-align: center">
					<input type="button" class="btn1" value="Edit"
						onclick="javascript:editAct();" /> <input type="button"
						class="btn1" value="Delete" onclick="javascript:deleteEbayAct();" />
					<input type="button" class="btn1" value="Close"
						onclick="javascript:window.close();" />
				</div>
			</div>
		</div>
	</form>
</body>
</html>